
let res=Buffer.alloc(10,1);
console.log(res);

let res2=Buffer.allocUnsafe(10);
res.fill(2);
console.log(res);

let str=Buffer.from('大家好');
console.log(str);

let newbuffer1=str.slice(0,3);
console.log(newbuffer1.toString());




